import {SAVE_BARCHART} from "./constant";

const defaultState = {
  barChart: ""
};

function reducer(state = defaultState, action) {
  switch (action.type) {
    case SAVE_BARCHART:
      return {...state, barChart: action.barChart};
    default:
      return state;
  }
}
export default reducer;